<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            background-color: red;          
            opacity: 0.5;   /* 盒子半透明*/ 
           /* background: rgba(255, 0, 0, .2);   盒子的背景透明度*/ 
           /* filter: alpha(opacity=20); IE6半透明写法 */
        }
    </style>
</head>
<body>
    <div>
        <div></div>
        <p>1111111111111</p>
    </div>
</body>
</html>